package com.example.gybicycle.entity;

import com.example.gybicycle.common.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Schema(name ="付款记录")
public class MemberPay   extends Entity {
    @Schema(description = "付款记录id")
    private String id;
    @Schema(description = "订单id")
    private String memberOrderId;
    @Schema(description = "骑行人名称")
    private  String memberName;
    @Schema(description = "骑行人电话")
    private  String memberTelphone;
    @Schema(description = "支付金额")
    private BigDecimal money;
    @Schema(description = "付款类型 0 押金 1 骑行 2 退款 ")
    private Integer payType;
    @Schema(description = "计价方式 0 按小时 1 按骑行卡")
    private Integer priceType;
    @Schema(description = "付款类型")
    private String typeName;
    @Schema(description = "付款状态 0 未支付  1 已支付 2 支付失败")
    private Integer payState;
    @Schema(description = "付款状态")
    private String stateName;
    @Schema(description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date  createTime;
    @Schema(description ="排序")
    private Integer  sort;
    @Schema(description = "骑行人")
    private String memberId;
    @Schema(description = "骑行人",hidden = true)
    private String memberOpenId;
    private String remark;

}